<template>
  <div class="product-page">
    <div class="product-header">
      <h1>{{ $t('products.standUpZipBags.title') }}</h1>
      <p class="product-subtitle">{{ $t('products.standUpZipBags.subtitle') }}</p>
    </div>

    <div class="product-content">
      <section class="product-section">
        <h2>{{ $t('products.common.features') }}</h2>
        <ul class="feature-list">
          <li v-for="(feature, index) in $t('products.standUpZipBags.features')" :key="index">
            {{ feature }}
          </li>
        </ul>
      </section>

      <section class="product-section technical-specs">
        <h2>{{ $t('products.common.technicalSpecs') }}</h2>
        <div class="specs-grid">
          <div class="spec-item" v-for="(spec, index) in $t('products.standUpZipBags.specs')" :key="index">
            <h3>{{ spec.title }}</h3>
            <p>{{ spec.value }}</p>
          </div>
        </div>
      </section>

      <section class="product-section applications">
        <h2>{{ $t('products.common.applications') }}</h2>
        <div class="application-cards">
          <div class="card" v-for="(app, index) in $t('products.standUpZipBags.applications')" :key="index">
            <div class="card-icon">
              <component :is="app.iconComponent" />
            </div>
            <h3>{{ app.title }}</h3>
            <p>{{ app.description }}</p>
          </div>
        </div>
      </section>
    </div>
  </div>
</template>

<script>
export default {
  name: 'StandUpZipBags',
  components: {
    // 图标组件需要根据实际图标库配置
  }
}
</script>

<style scoped>
.product-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.product-header {
  text-align: center;
  margin-bottom: 3rem;
}

.product-subtitle {
  color: #666;
  font-size: 1.1rem;
  margin-top: 1rem;
}

.feature-list {
  columns: 2;
  list-style-type: disc;
  padding-left: 2rem;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.application-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.card {
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .feature-list {
    columns: 1;
  }
}
</style>
